package com.jshare.entity;

import java.sql.Timestamp;

import javax.persistence.Temporal;
import javax.persistence.TemporalType;
// default package



/**
 * News entity. @author MyEclipse Persistence Tools
 */

public class News  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String title;
     private String content;
     private String author;
     private String source;
     private Timestamp postdate;

    // Constructors

    /** default constructor */
    public News() {
    }


	/** full constructor */
    public News(Integer id, String title, String content, String author,
			String source, Timestamp postdate) {
		super();
		this.id = id;
		this.title = title;
		this.content = content;
		this.author = author;
		this.source = source;
		this.postdate = postdate;
	}
   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
   


	public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public String getAuthor() {
        return this.author;
    }
    
    public void setAuthor(String author) {
        this.author = author;
    }


	public String getSource() {
		return source;
	}


	public void setSource(String source) {
		this.source = source;
	}

	public Timestamp getPostdate() {
		return postdate;
	}


	public void setPostdate(Timestamp postdate) {
		this.postdate = postdate;
	}
   








}